﻿using System;
using System.Collections.Generic;

namespace Hvam.SharePoint.Search.Tests
{
    public class TestCases<T1, T2> : List<TestCase<T1, T2>>
    {
        public void Act(Func<T1, T2> f)
        {
            ForEach(test => test.Actual = f(test.Data));
        }

        public void Assert(Action<T2, T2> f)
        {
            ForEach(test => f(test.Expected, test.Actual));
        }
    }
}